<template>
    <el-form-item :label=label.select :prop="label.rules" class="selectinput">
        <el-select v-model="region" :placeholder=msg>
            <el-option v-for="(item,index) in label.options" :key="index" :label="item.label" :value="item.value "></el-option>
        </el-select>
    </el-form-item>
</template>

<script>
export default {
    props:{
        // region:String,
        label:Object
    },
    data(){
        return{
            msg:'请选择'+this.label.select,
            region:''
        }
    }
}
</script>

<style lang="scss" scoped>
    .selectinput{
        width: 520px;
        ::v-deep .el-form-item__label{
            // width: 120px !important;
            padding-right: 0px;
            // box-sizing: border-box;
        }
        ::v-deep .el-form-item__content{
            margin-left: 120px !important;
        }
        ::v-deep .el-input__inner{
            width: 400px;
        }
    }
</style>